<?php
//图片服务器数组
	$volpic888[1]='http://pic.89890.com/';
	$volpic888[2]='http://pic2.89890.com/';
	$volpic888[3]='http://pic3.89890.com/';
	$volpic888[8]='http://pic8.89890.com/';
	$volpic888[99]='http://pic99.89890.com/';
	$volpic888[4]='http://pic4.89890.com/';
	$volpic888[5]='http://pic5.89890.com/';
	$volpic888[7]='http://pic7.89890.com/';
	$volpic888[9]='http://pic9.89890.com/';
	$volpic888[10]='http://pic10.89890.com/';
	$volpic888[100]='http://pic100.89890.com/';
	$volpic888[6]='http://pic6.89890.com/';
	$volpic888[12]='http://pic-12.xunlv.com/';
	$volpic888[13]='http://117.41.165.182:8989/';
	$volpic888[12]='http://pic12.xunlv.com/';
	$volpic888[11]='http://pic11.89890.com/';
	$volpic888[1111]='http://pic11.89890.com/';
	$volpic888[111]='http://pic11.89890.com/';
	$volpic888[110]='http://pic10.89890.com/';
	$volpic888[111111]='http://pic11.89890.com/';

//初始以及增量对应
	
	
	
//图片链接处理函数
	function get_js_url($tid,$cid){
		return  file_get_contents('http://www.89890.com/comic/' . $tid . '/' . $cid . '/index.js');
	}
//获取该页面调用的图片加密算法
	function get_pic_cal($content){
		$urls = explode('"/Js/Vol',$content);
		$urls = $urls[1];
		$urls = explode('.js"',$urls,2);
		$urls = $urls[0];
		return $urls;
	}
	
//显示算法库
	function vol2($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(3,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol3($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(3,$i + 1) . get_pre_nums(3,$i - 1) . get_pre_nums(3,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol4($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*18527) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol5($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*28527) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol6($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*19527) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol7($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*18627) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol8($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*18537) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol9($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*18528) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	function vol10($num,$tpf2,$pre_url,$volpic888) {
		for ($i = 1; $i <= $num; $i++) {
			$pics .= $volpic888[$tpf2] . $pre_url . get_pre_nums(8,$i*18828) . get_pre_nums(8,$i) . ".jpg\r\n";
		}
		return $pics;
	}
	
	


?>